﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Web;
using DO.Workflows;

namespace SVC.Workflows
{
    [ServiceContract(Namespace = "")]
    public interface IWorkflowDesignService
    {
        [OperationContract]
        string GetWorkflow(Guid workflowID);

        [OperationContract]
        string GetWorkflowByName(string workflowName);

        [OperationContract]
        void SaveWorkflow(WorkflowDesign wfDesign);

        [OperationContract]
        void PublishWorkflow(string xml);

        [OperationContract]
        List<string> ListWorkflowNames();

        [OperationContract]
        void DeleteWorkflowByName(string workflowName);

        [OperationContract]
        void DeleteWorkflow(Guid workflowID);

        [OperationContract]
        void TestWorkflow(Guid workflowID);
    }
}
